/**
 * Encapsulates annotation information for the MKMapView. 
 * 
 * Stores the annotation title, subtitle and coordinate
 * @author      William LaFrance(used with permission: http://wjlafrance.net/?p=7)
 * @version     0.2.0
 * @since       0.2.0
 */

#import <Foundation/Foundation.h>
#import <MapKit/MapKit.h>


@interface AddressAnnotation : NSObject <MKAnnotation>  {
    CLLocationCoordinate2D annCoordinate;
    NSString * annTitle;
    NSString * annSubtitle;
}

+ (AddressAnnotation *)mapAnnotationWithCoordinate:(CLLocationCoordinate2D)coordinate;
+ (AddressAnnotation *)mapAnnotationWithCoordinate:(CLLocationCoordinate2D)coordinate andTitle:(NSString *)title;
+ (AddressAnnotation *)mapAnnotationWithCoordinate:(CLLocationCoordinate2D)coordinate andTitle:(NSString *)title andSubtitle:(NSString *)subtitle;

- (id) initWithCoordinate:(CLLocationCoordinate2D)coordinate;
- (id) initWithCoordinate:(CLLocationCoordinate2D)coordinate andTitle:(NSString *) title;
- (id) initWithCoordinate:(CLLocationCoordinate2D)coordinate andTitle:(NSString *) title andSubtitle:(NSString *)subtitle;

- (NSString *)title;
- (NSString *)subtitle;

@end